package com.kfm.spring.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
public class HelloController {

    @RequestMapping("/hello")
    public String hello() {
        System.out.println("HelloController.hello");
        return "hello";
    }

    @RequestMapping("/page")
    public ModelAndView page(){
        return new ModelAndView("page");
    }
}
